package com.zynn.feign.module.es;

import com.zynn.common.pojo.result.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author jerry-liqi
 * <p>
 * SyncLogFeignService
 * <p>
 * 同步日志信息 feign
 */
@FeignClient(value = "service-module-es")
public interface SyncLogFeignService {

    /**
     * 统计错误接口数量
     *
     * @param minute
     * @return
     */
    @GetMapping(value = "/sync/log/countErrorAPI")
    Result<Integer> countErrorAPI(@RequestParam("minute") int minute);


}
